package com.demo.controller;

import com.demo.ResponseResult;
import com.demo.domain.vo.ConditionalPaginationVo;
import com.demo.service.LogisticsAreaService;
import com.demo.service.LogisticsSendinfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@CrossOrigin(origins = "*")
public class LogisticsAreaController {
    @Autowired
    private LogisticsAreaService logisticsAreaService;
    @Autowired
    private LogisticsSendinfoService logisticsSendinfoService;
    //物流人员查询本站的物流
    @PostMapping("/viewLogistics")
    public ResponseResult viewLogistics(@RequestBody ConditionalPaginationVo conditionalPaginationVo){
        return logisticsSendinfoService.viewLogistics(conditionalPaginationVo);
    }
    //修改下一站
    @GetMapping("/nextstation")
    public ResponseResult nextstation(@RequestParam  Integer orderNumber){
        return logisticsAreaService.nextstation(orderNumber);
    }

    //查看途径区域
    @GetMapping("/LogisticsMap")
    public ResponseResult LogisticsMap(@RequestParam  Integer orderNumber){
        return logisticsAreaService.LogisticsMap(orderNumber);
    }



}
